const { getCardByUserList } = require("../../../service/carInfo");
const { getUserById } = require("../../../service/user");
const { WebSocketConnect, resultUtil } = require("../../webSocketUtil");

function index() { }
index.prototype.onOpen = async function () {
    let list = await getCardByUserList(26)
    this.success(list)
}
index.prototype.onMessage = function (data) {
    try {
        let message = JSON.parse(data)
        let paramsData = message.data || {}
        console.log("收到消息:", message);
    } catch (error) {
        console.error('client.car.onMessage', error)
    }

}
module.exports = index